package com.sikaryofficial.qrcode;

import com.anwen.mongo.config.MongoPlusAutoConfiguration;
import com.sikaryofficial.common.security.annotation.EnableCustomConfig;
import com.sikaryofficial.common.security.annotation.EnableRyFeignClients;
import com.sikaryofficial.common.swagger.annotation.EnableCustomSwagger2;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

/**
 * 二维码服务启动类
 *
 * @author qinjinyuan
 * @date 2023/10/27
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@MapperScan(basePackages = {"com.sikaryofficial.**.mapper"})
@SpringBootApplication
@Import(MongoPlusAutoConfiguration.class)
@Slf4j
// 开启自动解密功能
@EnableEncryptableProperties
public class QrCodeApplication {
    public static void main(String[] args) {
        SpringApplication.run(QrCodeApplication.class, args);
        log.info("(♥◠‿◠)ﾉﾞ  HISMK二维码模块启动成功 soft  ლ(´ڡ`ლ)ﾞ  \n" +
                " ,-----.                  ,-----.          ,--.        \n" +
                "'  .-.  '  ,--.--.,-----.'  .--./ ,---.  ,-|  | ,---.  \n" +
                "|  | |  |  |  .--''-----'|  |    | .-. |' .-. || .-. : \n" +
                "'  '-'  '-.|  |          '  '--'\\' '-' '\\ `-' |\\   --. \n" +
                " `-----'--'`--'           `-----' `---'  `---'  `----' ");
    }
}
